package com.tengju.bff.interfaces.app.domination.vo;

import com.tengju.data.domain.model.user.StarLevelEnum;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

@Data
@ApiModel(value = "StarLevelNumVO", description = "数量VO")
public class StarLevelNumVO {

    private Integer starLevelCode;

    private String starLevelDesc;

    private Integer num;

    public static StarLevelNumVO of(StarLevelEnum starLevelEnum, int num) {
        return new StarLevelNumVO(starLevelEnum.getCode(), starLevelEnum.getDesc(), num);
    }

    private StarLevelNumVO() {
    }

    private StarLevelNumVO(Integer starLevelCode, String starLevelDesc, int num) {
        this.starLevelCode = starLevelCode;
        this.starLevelDesc = starLevelDesc;
        this.num = num;
    }
}
